package com.jusnow.offer;

import java.util.Comparator;
import java.util.List;
import java.util.PriorityQueue;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author justnow
 * Created on 2020-09-03
 * Description
 */
public class StreamDemo1 {
    public static void main(String[] args) {
        String[] test = {"java", "react", "angular", "vue"};
        List<String> collect = Stream.of(test).collect(Collectors.toList());
        for (String s : collect) {
            System.out.println(s);
        }
    }
}
